home *** CD-ROM | disk | FTP | other *** search
- Path: dax.cc.uakron.edu!tberg
- From: tberg@dax.cc.uakron.edu (timothy a berg)
- Newsgroups: comp.lang.c++
- Subject: A question about declaring/passing arrays of structures
- Date: 17 Jan 1996 19:07:24 GMT
- Organization: The University of Akron, Akron, Ohio
- Distribution: na
- Message-ID: <4djhdc$kp3@kira.cc.uakron.edu>
- NNTP-Posting-Host: dax.cc.uakron.edu
-
- I have recently been having trouble getting a program to work. It
- consists of 6 variables, which are all arrays of structures. It seems
- that when I pass them to a function, (located in another file), the
- compiler will flag a fatal error on some of them. They are all defined
- properly in a '.h' file, and linked to from the main program file,
- (containing the 'main' function). There is nothing really unique about
- the functions that work. Most of them consist of a few character
- variables, a few integers, and 5 of the 6 contain a character array, set
- to a certain length by a constant.
- The error that I get is a 'General Protection Error' at 0001:3???,
- which seems low in memory. But, when I comment out a for-next loop
- that is immediately after the function call, I get a 'Stack Fault' error
- at ALMOST the same location. I'm baffled. I've had assembler, and
- several programming courses, but this one puzzles me.
- Does anybody have a possible solution? If so, e-mail PERSONALLY,
- as I don't get to read the news often. Your help is VERY MUCH
- appreciated, as I have been trying to remedy this problem for almost 4
- months now, with no success!!
-
- Tim Berg
-
-